package com.fire.control.system.dto.app;

import java.io.Serializable;

import com.fire.control.system.dto.UserDTO;
import com.fire.control.system.support.util.StaticValue;

public class AppUserVo implements Serializable{

	private static final long serialVersionUID = 1387207168625052612L;
	
	private String id;
	
	private String name;
	
	private String telNumber;
	
	private String userIcon;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTelNumber() {
		return telNumber;
	}

	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}

	

	public String getUserIcon() {
		return userIcon;
	}

	public void setUserIcon(String userIcon) {
		this.userIcon = userIcon;
	}

	public AppUserVo set(UserDTO user) {
		this.id = user.getUserId();
		this.name = user.getName();
		this.telNumber = user.getTelNumber();
		this.userIcon = StaticValue.file_server_domain + user.getUserIcon();
		return this;
	}
	
	
}
